
#include <Ogre.h>
#include <string>


class ObjectTextDisplay 
{

protected:
	const Ogre::MovableObject* m_p;
	const Ogre::Camera* m_c;
	bool m_enabled;
	Ogre::Overlay* m_pOverlay;
	Ogre::OverlayElement* m_pText;
	Ogre::OverlayContainer* m_pContainer;
	Ogre::String m_text;

public:
	
	ObjectTextDisplay(const Ogre::MovableObject * p, const Ogre::Camera * c);

	virtual ~ObjectTextDisplay();

	void enable(bool enable);

	void setText(const Ogre::String& text);

	void update();

};